package zhzz;

import java.util.ArrayList;
import java.util.List;

import Modle.disease.ClinicalSymptomsKey;
import Modle.disease.Symptoms;

public class SingleDataofzhzz {

	private static int jishu = 0;
	public static void setJishu(int jishu) {
		SingleDataofzhzz.jishu = jishu;
	}

	private List<String> lists3 = new ArrayList<String>();
	private List<String> lists2 = new ArrayList<String>();
	private ArrayList<Object> lists = new ArrayList<Object>();
	private Symptoms symptomsofSingle = null;
	private static SingleDataofzhzz instance = null;

	private void SingleDataofAll() {

	}

	public static SingleDataofzhzz getInstance() {
		if (instance == null) {
			instance = new SingleDataofzhzz();
		}
		return instance;
	}

	public void setListinformation(List<Object> list) {

		for (int i = 0; i < list.size(); i++) {

			lists.add(list.get(i));

		}
	}

	public List<Object> getListinformation() {

		return lists;

	}

	public void removeZofListInformation(int i) {

		i = i - jishu;
		if(i < lists.size())
		lists.remove(i);
		jishu++;
	}

	public void setObject(Symptoms s) {
		this.symptomsofSingle = s;

	}

	public Symptoms getObject() {

		return symptomsofSingle;

	}

	public void setlists2ofinformation(List<String> l) {
		for (int i = 0; i < l.size(); i++) {
			lists2.add(l.get(i));
		}
	}

	public List<String> getlist2ofinformation() {
		return lists2;

	}

	public void setidinformation(List<String> l) {
		for (int i = 0; i < l.size(); i++) {
			lists3.add(l.get(i));
		}
	}

	public List<String> getidinformation() {
		return lists3;

	}

	public void removeAll() {

		lists.clear();
		lists2.clear();
		lists3.clear();
		jishu = 0;
	}
}
